This patch will first check if the generated configuration folder exists and then delete it, after that it will always create the configuration folder.
PKG_NAME:=tinc
PKG_VERSION:=1.0.24
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages
section_enabled "$s" || return 1
- # rm old config
- rm -rf "$TMP_TINC/$s/"
-
- [ ! -d "$TMP_TINC/$s" ] && mkdir -p "$TMP_TINC/$s"
+ [ -d "$TMP_TINC/$s" ] && rm -rf "$TMP_TINC/$s/"
+ mkdir -p "$TMP_TINC/$s"
[ -d "/etc/tinc/$s" ] && cp -r "/etc/tinc/$s" "$TMP_TINC/"
# append flags